<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../plugins/mui/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../css/excutive_housekeeper/detail.css" />
		<script src="../../js/statistics.js"></script>
		<style>
			.header a{
				color:#fff;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav header">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title"></h1>
		</header>

		<div class='mui-content'>
		</div>
		
		<script src='../../plugins/jquery/jquery-3.1.0.min.js'></script>
		<script src="../../plugins/mui/mui.min.js"></script>
		<script src="../../js/getApiToken.js"></script>
		<script type="text/javascript" src="../../plugins/template/template.js" ></script>
		<script type="text/javascript" src="../../js/md5.js" ></script>
		<!--<script type="text/javascript" src="../../js/judge.js" ></script>-->
		<script id="list" type="text/html">
			<ul class='mui-table-view'>
				{{each data as value i}}
				<li class='mui-table-view-cell' onclick="openNewWindow({{value.id}})">{{value.title}}</li>
				{{/each}}
			</ul>
		</script>
		<script type="text/javascript">
			mui.init();
			mui.plusReady(function(){
				var ws = plus.webview.currentWebview(),
					id = ws.pageId,
					title = ws.pageTitle;
				$("header").find("h1").text(title);
				myAnotherAjax('administration/administration/guidelist','get',{'id':id},function(data){
					if(data.success){
						initData(data);
					}else{
						mui.alert("网络错误，请重新尝试");
					}
				});
			});
			function initData(data){
				var list = {
					data:data.data
				}
				var html = template('list',list);
				$(".mui-content").append(html);
			}
			function openNewWindow(id){
				mui.openWindow({
					url:'main_detail.html',
					extras:{
						pageId:id
					},
					waiting:{
				      		autoShow:true,//自动显示等待框，默认为true
				      		title:'正在加载...',//等待对话框上显示的提示内容
  					},
  					show:{
  						autoShow:true,
  						aniShow:'fade-in'
  					}
				})
			}
		</script>
	</body>
</html>